package com.zzh.takeoutapp.fragment;

import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import com.zzh.takeoutapp.R;
import com.zzh.takeoutapp.activity.OrderCarDatelisActivity;
import com.zzh.takeoutapp.adapter.FoodAdapter;
import com.zzh.takeoutapp.adapter.TypeAdapter;
import com.zzh.takeoutapp.base.BaseFragment;
import com.zzh.takeoutapp.view.goods.ListContainer;

/**
 * Created by Administrator on 2018/7/20.
 */

public class FirstFragment extends BaseFragment {
    private ListContainer listContainer;

    public static FirstFragment newInstance() {
        FirstFragment evaluateFragment = new FirstFragment();
        return evaluateFragment;
    }
    public FoodAdapter getFoodAdapter() {
        return listContainer.foodAdapter;
    }

    public TypeAdapter getTypeAdapter() {
        return listContainer.typeAdapter;
    }

    @Override
    public void getsavedInstanceState(Bundle savedInstanceState) {

    }

    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container) {
        View view = inflater.inflate(R.layout.fragment_first, container, false);
        listContainer = (ListContainer) view.findViewById(R.id.listcontainer);
        listContainer.setAddClick((OrderCarDatelisActivity) getActivity());
        return view;
    }

    @Override
    public void initComponent(View view) {

    }

    @Override
    public void setListener() {

    }

    @Override
    public void onAfterInit() {

    }

    @Override
    public void onClick(View v) {

    }


}
